
Page({

  /**
   * 页面的初始数据
   */
  data: {
    showType: "bottom",
    ststus: false,
    navHeight:0,
    navTop:0,
    height:0
  },

  onShow(){
    let navHeight = wx.getStorageSync('navHeight')
    let navTop = wx.getStorageSync('navTop')
    this.setData({
      navHeight: navHeight,
      navTop: navTop,
      height: navHeight - navTop
    })
  },
  handleTypeClick(e) {
    let type = e.currentTarget.dataset.type
    if (type == "top") {
      this.setData({
        ststus: true,
        showType: "top"
      })
    } else if (type == "bottom") {
      this.setData({
        ststus: true,
        showType: "bottom"
      })
    } else if (type == "left") {
      this.setData({
        ststus: true,
        showType: "left"
      })
    } else if (type == "right") {
      this.setData({
        ststus: true,
        showType: "right"
      })
    } else if (type == "cenent") {
      this.setData({
        ststus: true,
        showType: "cenent"
      })
    }
  },
  handleCancle() {
    this.setData({
      ststus: false,
    })
  }
})